package cn.sky.demo.mapper;

import cn.sky.demo.config.MyBaseMapper;
import cn.sky.demo.domain.entity.User;
import cn.sky.demo.domain.vo.OrderVO;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author sky
 * @date 2025年09月15日 16:49
 * @description
 * @since 1.0.0
 */
@Mapper
public interface UserMapper extends MyBaseMapper<User>{
    // 查询订单列表
    List<OrderVO> selectOrders();
    //带分页的关联查询
    IPage<OrderVO> selectOrdersPage(IPage<OrderVO> page, @Param(Constants.WRAPPER) QueryWrapper<OrderVO> queryWrapper);
}
